package com.zhuoyue;

/**
 * @author Created by mr.liang
 */

public class AppDemo {




    public static void main(String[] args) {

        Client client = new Client("free.idcfengye.com",10846);

        //服务端返回数据时，将触发回调
        client.registerCallback((data)->{
            System.out.println(data);
        });
        //必须调用，连接服务端
        client.connection();

        //写入数据到服务端
        client.write("hello world");

    }
}
